package spring.framework.util;

/**
 * @author fun.pengzh
 * @class spring.framework.util.ClassUtils
 * @desc class工具类
 * @since 2021-10-10
 */
public class ClassUtils {

    public static ClassLoader getDefaultClassLoader() {
        ClassLoader classLoader = null;
        try {
            classLoader = Thread.currentThread().getContextClassLoader();
        } catch (Throwable throwable) {

        }
        if (classLoader == null) {
            classLoader = ClassUtils.class.getClassLoader();
        }
        return classLoader;
    }

}
